/* global Vue */
import Router from 'vue-router'
import Home from '@/views/home/home' // 主页
import EndSoon from '@/views/home/endSoon' // 即将结单
import SearchList from '@/views/home/searchList' // 搜索列表
import Login from '@/views/login/login' // 登录
import Register from '@/views/register/register' // 注册
import SettleType from '@/views/settle/settleType' // 选择入驻
import SettleApply from '@/views/settle/settleApply' // 申请入驻
import SetInformation from '@/views/settle/setInformation' // 资料填写
import SettlePerson from '@/views/settle/settlePerson' // 个人入驻
import SettleAuthenticate from '@/views/settle/settleAuthenticate' // 资料认证
import Store from '@/views/store/store' // 商品首页
import StoreType from '@/views/store/storeType' // 商品详情页
import StoreAddress from '@/views/store/storeAddress' // 商品列表地址
import FanHall from '@/views/fanhall/fanhall' // 范堂
import Market from '@/views/market/market' // 新市集
import PublishTask from '@/views/market/publishTask' // 发布信息
import MasterPlatform from '@/views/market/masterPlatform' // 大师工坊
import AskInformation from '@/views/market/askInformation' // 求购信息
import Material from '@/views/market/material' // 找布料
import Accessories from '@/views/market/accessories' // 找辅料
import Factory from '@/views/market/factory' // 找工厂
import Order from '@/views/market/order' // 找订单
import Master from '@/views/market/master' // 找高人
import Edition from '@/views/market/edition' // 打版
import Proof from '@/views/market/proof' // 打样
import Design from '@/views/market/design' // 设计
import PlatformMaster from '@/views/market/platformMaster' // 工坊高人
import MyPublic from '@/views/mine/myPublic' // 我的发布
import Invoice from '@/views/invoice/invoice' // 发票
import InvoiceDetail from '@/views/invoice/invoiceDetail' // 发票详情
import MyOrder from '@/views/mine/myOrder' // 待付款
import StoreDetail from '@/views/store/storeDetail' // 商品详情页
import WriteOrder from '@/views/mine/writeOrder' // 填写订单
import PersonalCenter from '@/views/mine/personalCenter' // 我的
import TaskOrder from '@/views/mine/taskOrder' // 任务订单
import TaskOrderDetail from '@/views/mine/taskOrderDetail' // 任务订单详情
import MyCollection from '@/views/mine/myCollection' // 我的收藏
import MyView from '@/views/mine/myView' // 我的浏览
import AccountSetting from '@/views/account/accountSetting' // 账户设置
import AccountSafe from '@/views/account/accountSafe' // 账户安全
import ModifyPassword from '@/views/account/modifyPassword' // 修改密码
import ReBindTelphone from '@/views/account/reBindTelphone' // 重新绑定手机
import PersonalInfo from '@/views/account/personalInfo' // 个人信息
import MyAddress from '@/views/account/myAddress' // 我的地址
import AboutApp from '@/views/account/aboutApp' // 关于APP
import UserProtocol from '@/views/account/userProtocol' // 用户协议
import NewAddress from '@/views/mine/newAddress' // 新增地址
import StoreOrder from '@/views/myorder/storeOrder' // 商城订单
import WriteAddress from '@/views/mine/writeaddress' // 编写收货地址
import Checkstand from '@/views/myorder/checkstand' // 收银台
import ConfirmTrade from '@/views/myorder/confirmTrade' // 确认收货
import PayFinish from '@/views/myorder/payFinish' // 支付完成
import NullAddress from '@/views/myorder/nullAddress' // 空收货地址
import AlreadyPay from '@/views/mine/alreadyPay' // 已付款
import WaitGain from '@/views/mine/waitGain' // 待收货
import FinishOrder from '@/views/mine/finishOrder' // 完成订单
import Cancel from '@/views/mine/cancel' // 取消订单
import StoreInfo from '@/views/store/storeInfo' // 店铺信息
import InfoDetail from '@/views/store/infoDetail' // 店铺详情
import PublishDetail from '@/views/market/publishDetail' // 发布详情
import ShoppingCar from '@/views/store/shoppingCar' // 购物车
import SaleStoreOrder from '@/views/myorder/saleStoreOrder' // 卖家订单
import PublishOrder from '@/views/myorder/publishOrder' // 商品管理
import SalePersonalCenter from '@/views/mine/salePersonalCenter' // 卖家个人中心
import SaleStore from '@/views/store/saleStore' // 卖家商城
import SaleStoreDetail from '@/views/store/saleStoreDetail' // 卖家商品详情
import ShopGurantee from '@/views/mine/shopGurantee' // 店铺管理
import MessageCenter from '@/views/message/messageCenter' // 消息中心
import SystemMessage from '@/views/message/systemMessage' // 系统消息
import BusinessMessage from '@/views/message/businessMessage' // 交易信息
import TaskMessage from '@/views/message/taskMessage' // 任务信息
import AddAddress from '@/views/mine/addAddress' // 新增收货地址
import PicDetail from '@/views/fanhall/picDetail' // 范堂图片详情
import ContentDetail from '@/views/fanhall/contentDetail' // 范堂图文详情
import SaleStoreInfo from '@/views/store/saleStoreInfo' // 卖家店铺
import PublishGood from '@/views/store/publishGood' // 商品发布
Vue.use(Router)

module.exports = new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    }, // 主页
    {
      path: '/home',
      name: 'home',
      component: Home
    }, // 主页
    {
      path: '/home/endSoon',
      name: 'endSoon',
      component: EndSoon
    }, // 即将结单
    {
      path: '/home/searchList',
      name: 'searchList',
      component: SearchList
    }, // 搜索列表
    {
      path: '/login',
      name: 'login',
      component: Login
    }, // 登录
    {
      path: '/register',
      name: 'register',
      component: Register
    }, // 注册
    {
      path: '/settle',
      name: 'settle',
      component: SettleType
    }, // 选择入驻
    {
      path: '/settle/apply',
      name: 'apply',
      component: SettleApply
    }, // 申请入驻
    {
      path: '/settle/person',
      name: 'person',
      component: SettlePerson
    }, // 个人入驻
    {
      path: '/settle/information',
      name: 'information',
      component: SetInformation
    }, // 资料填写
    {
      path: '/settle/authenticate',
      name: 'authenticate',
      component: SettleAuthenticate
    }, // 提交认证
    {
      path: '/store',
      name: 'store',
      component: Store
    }, // 商城
    {
      path: '/store/storeType',
      name: 'storeType',
      component: StoreType
    }, // 商城类型
    {
      path: '/store/storeAddress',
      name: 'storeAddress',
      component: StoreAddress
    }, // 商城地址
    {
      path: '/fanhall',
      name: 'fanhall',
      component: FanHall
    }, // 范堂
    {
      path: '/fanhall/contentDetail',
      name: 'contentDetail',
      component: ContentDetail
    }, // 范堂
    {
      path: '/market',
      name: 'market',
      component: Market
    }, // 新市集
    {
      path: '/market/publishTask',
      name: 'publishTask',
      component: PublishTask
    }, // 发布信息
    {
      path: '/market/masterPlatform',
      name: 'masterPlatform',
      component: MasterPlatform
    }, // 大师工坊
    {
      path: '/market/askInformation',
      name: 'askInformation',
      component: AskInformation
    }, // 求购信息
    {
      path: '/market/material',
      name: 'material',
      component: Material
    }, // 找布料
    {
      path: '/market/accessories',
      name: 'accessories',
      component: Accessories
    }, // 找辅料
    {
      path: '/market/factory',
      name: 'factory',
      component: Factory
    }, // 找工厂
    {
      path: '/market/order',
      name: 'order',
      component: Order
    }, // 找订单
    {
      path: '/market/master',
      name: 'master',
      component: Master
    }, // 找高人
    {
      path: '/market/edition',
      name: 'edition',
      component: Edition
    }, // 打板
    {
      path: '/market/proof',
      name: 'proof',
      component: Proof
    }, // 打样
    {
      path: '/market/design',
      name: 'design',
      component: Design
    }, // 设计
    {
      path: '/market/platformMaster',
      name: 'platformMaster',
      component: PlatformMaster
    }, // 工坊高人
    {
      path: '/mine/myOrder',
      name: 'myOrder',
      component: MyOrder
    }, // 我的订单
    {
      path: '/mine/myPublic',
      name: 'myPublic',
      component: MyPublic
    }, // 我的发布
    {
      path: '/invoice/invoice',
      name: 'invoice/invoice',
      component: Invoice
    }, // 发票
    {
      path: '/invoice/invoiceDetail',
      name: 'invoiceDetail',
      component: InvoiceDetail
    }, // 发票详情
    {
      path: '/store/storeDetail',
      name: 'storeDetail',
      component: StoreDetail
    }, // 商品详情
    {
      path: '/mine/writeOrder',
      name: 'writeOrder',
      component: WriteOrder
    }, // 填写订单
    {
      path: '/account/myAddress',
      name: 'myAddress',
      component: MyAddress
    }, // 我的地址
    {
      path: '/mine/newAddress',
      name: 'newAddress',
      component: NewAddress
    }, // 新增地址
    {
      path: '/myorder/storeOrder',
      name: 'storeOrder',
      component: StoreOrder
    }, // 商城订单
    {
      path: '/mine/writeaddress',
      name: 'writeaddress',
      component: WriteAddress
    }, // 填写地址
    {
      path: '/myorder/checkstand',
      name: 'checkstand',
      component: Checkstand
    }, // 收银台
    {
      path: '/myorder/confirmTrade',
      name: 'confirmTrade',
      component: ConfirmTrade
    }, // 确认交易
    {
      path: '/myorder/payFinish',
      name: 'payFinish',
      component: PayFinish
    }, // 支付完成
    {
      path: '/myorder/nullAddress',
      name: 'nullAddress',
      component: NullAddress
    }, // 收货地址为空
    {
      path: '/mine/alreadyPay',
      name: 'alreadyPay',
      component: AlreadyPay
    }, // 支付完成
    {
      path: '/mine/waitGain',
      name: 'waitGain',
      component: WaitGain
    }, // 等待收货
    {
      path: '/mine/finishOrder',
      name: 'finishOrder',
      component: FinishOrder
    }, // 完成订单
    {
      path: '/mine/cancel',
      name: 'cancel',
      component: Cancel
    }, // 取消订单
    {
      path: '/mine/personalCenter',
      name: 'personalCenter',
      component: PersonalCenter
    }, // 我的
    {
      path: '/mine/taskOrder',
      name: 'taskOrder',
      component: TaskOrder
    }, // 任务订单
    {
      path: '/mine/taskOrderDetail',
      name: 'taskOrderDetail',
      component: TaskOrderDetail
    }, // 任务订单详情
    {
      path: '/mine/myCollection',
      name: 'myCollection',
      component: MyCollection
    }, // 我的收藏
    {
      path: '/mine/myView',
      name: 'myView',
      component: MyView
    }, // 我的浏览
    {
      path: '/account/accountSetting',
      name: 'accountSetting',
      component: AccountSetting
    }, // 账户设置
    {
      path: '/account/accountSafe',
      name: 'accountSafe',
      component: AccountSafe
    }, // 账户安全
    {
      path: '/store/saleStoreInfo',
      name: 'saleStoreInfo',
      component: SaleStoreInfo
    }, // 卖家店铺
    {
      path: '/account/aboutApp',
      name: 'aboutApp',
      component: AboutApp
    }, // 关于APP
    {
      path: '/account/userProtocol',
      name: 'userProtocol',
      component: UserProtocol
    }, // 用户协议
    {
      path: '/account/modifyPassword',
      name: 'modifyPassword',
      component: ModifyPassword
    }, // 修改密码
    {
      path: '/account/reBindTelphone',
      name: 'reBindTelphone',
      component: ReBindTelphone
    }, // 重新绑定
    {
      path: '/account/personalInfo',
      name: 'personalInfo',
      component: PersonalInfo
    }, // 个人信息
    {
      path: '/mine/myAddress',
      name: 'myAddress',
      component: MyAddress
    }, // 我的地址
    {
      path: '/store/storeInfo',
      name: 'storeInfo',
      component: StoreInfo
    }, // 商铺信息
    {
      path: '/store/infoDetail',
      name: 'infoDetail',
      component: InfoDetail
    }, // 商铺详情
    {
      path: '/market/publishDetail',
      name: 'publishDetail',
      component: PublishDetail
    }, // 发布详情
    {
      path: '/store/shoppingCar',
      name: 'shoppingCar',
      component: ShoppingCar
    }, // 购物车
    {
      path: '/myorder/saleStoreOrder',
      name: 'saleStoreOrder',
      component: SaleStoreOrder
    }, // 卖家商城订单
    {
      path: '/myorder/publishOrder',
      name: 'publishOrder',
      component: PublishOrder
    }, // 发布商品
    {
      path: '/mine/salePersonalCenter',
      name: 'salePersonalCenter',
      component: SalePersonalCenter
    }, // 卖家个人中心
    {
      path: '/store/saleStore',
      name: 'saleStore',
      component: SaleStore
    }, // 卖家个人商城
    {
      path: '/store/saleStoreDetail',
      name: 'saleStoreDetail',
      component: SaleStoreDetail
    }, // 卖家商品详情
    {
      path: '/mine/shopGurantee',
      name: 'shopGurantee',
      component: ShopGurantee
    },
    {
      path: '/message',
      name: 'messageCenter',
      component: MessageCenter
    }, // 消息中心
    {
      path: '/message/systemMessage',
      name: 'systemMessage',
      component: SystemMessage
    }, // 系统消息
    {
      path: '/message/businessMessage',
      name: 'businessMessage',
      component: BusinessMessage
    }, // 交易信息
    {
      path: '/message/taskMessage',
      name: 'taskMessage',
      component: TaskMessage
    }, // 任务信息
    {
      path: '/fanhall/picDetail',
      name: 'picDetail',
      component: PicDetail
    }, // 任务信息
    {
      path: '/mine/addAddress',
      name: 'addAddress',
      component: AddAddress
    }, // 添加地址
    {
      path: '/store/publishGood',
      name: 'publishGood',
      component: PublishGood
    } // 商品发布
  ]
})
